home *** CD-ROM | disk | FTP | other *** search
- property myalpha, spriteNum
- global select, preloadlist
-
- on beginSprite me
- myalpha = 0
- end
-
- on mouseUp me
- myalpha = sprite(spriteNum).member.hilite
- if myalpha = 1 then
- c = preloadlist[select].count
- if c > 0 then
- repeat with i = 1 to c
- preloadlist[select][i] = makealpha(preloadlist[select][i])
- end repeat
- end if
- else
- c = preloadlist[select].count
- if c > 0 then
- repeat with i = 1 to c
- preloadlist[select][i].useAlpha = 0
- end repeat
- end if
- end if
- end
-
- on exitFrame me
- if sprite(spriteNum).visible = 1 then
- if preloadlist[select].count > 0 then
- myalpha = preloadlist[select][1].useAlpha
- sprite(spriteNum).member.hilite = myalpha
- end if
- end if
- end
-